package com.foreknow.demo05;
/*
* 测试类
* */
public class Test {
    public static void main(String[] args) {
        //创建对象Bird
        Bird bird = new Bird();
        bird.name = "鸟";
        bird.color = "白色";
        bird.eat();
        System.out.println("-----------------------------");
        Swallow swallow = new Swallow();
        swallow.name = "燕子";
        swallow.color = "黑色";
        swallow.eat();
        swallow.fly();
    }
}
